How can I animate between states in a programmatic skin? [FLEX]

Posted by Lewis on Stack Overflow See other posts from Stack Overflow or by Lewis
Published on 2010-05-12T11:05:56Z Indexed on 2010/05/12 12:04 UTC
Read the original article Hit count: 171

Filed under:
|
|
|
|

I have a button with the various states (up/over/down etc) that uses a skin file to render the display. I want to achieve animation between the states. For instance, between the change from 'up' to 'over' I want to fade in a color and a border.

The way I am doing this at the moment is to use viewstates and animate between them using transitions and the mx:AnimateProperty. However, using this method I can only animate one property per viewstate. So only the border, or the color can be animated.

Does anyone know how I can achieve multiple animations on multiple properties of a programmatic button skin? Thanks in advance!

Note: I have looked into using tweener but cannot see how it would help my situation

© Stack Overflow or respective owner

Related posts about flex

Related posts about programmatic